<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BlogPostType
 *
 * @author bien.tran
 */
namespace Blog\BlogBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class BlogPostType extends AbstractType {
    public function buildForm(FormBuilder $formBuildeer, array $options) {
        $formBuildeer->add('title', 'text', array('label' => 'Title Blog', 'required' => true));
        $formBuildeer->add('content', 'textarea');
    }
    public function getDefaultOptions(array $options) {
        return array('data_class' => 'Blog\BlogBundle\Entity\BlogPost');
    }
    public function getName() {
        return 'blog_blogbundle_blogposttype';
    }
}

?>
